<?php
class Pictures_model extends Model{

	function Pictures_model(){
		parent::Model();		
	}
    
    /**
     * Get list picture in home page
     * @author tien.nguyen
     */
    public function getListPicturesHome(){
        $this->db->select();
        $this->db->from('pictures');
        $this->db->where('pictures.Visible = 1');
        $this->db->limit(10);
        $query = $this->db->get();
        return $query->result_array();
    }
}